﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ForecastPost_List.aspx.cs" Inherits="ForecastPost_List" MasterPageFile="~/APP_Master/MasterPage_Default.master" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
    <link href="css/webstyle.css" rel="stylesheet" />
    <script type="text/javascript">

    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 1200px; margin: 0 auto; height: 1560px">
        <div class="tr yctj_title">您当前所在位置：首页 > <span class="yctj_text"><a href="ForecastPost_List.aspx">预测推荐</a></span></div>
        <div>
            <div class="yctj_l">
                <ul>
                    <li>
                        <div class="yctj_l_title"><span class="fl">双色球</span><span class="yctj_l_text fr"><a href="ForecastList.aspx?PostType=预测推荐&LotteryType=1">预测推荐</a>丨<a href="ForecastList.aspx?PostType=投注技巧&LotteryType=1">投注技巧</a>丨<a href="ForecastList.aspx?PostType=中奖故事&LotteryType=1">中奖故事</a></span> </div>
                        <ul>
                            <% if (forecastShuang != null)
                                {
                                    for (int i = 0; i < forecastShuang.Count; i++)
                                    {%>
                            <li><a href="ForecastPostInfo.aspx?id=<%=forecastShuang[i].id %>"><span class="fl"><< <%=forecastShuang[i].Title.Length > 22 ? forecastShuang[i].Title.Substring(0, 22) : forecastShuang[i].Title %> </span><span class="fr"><%=forecastShuang[i].AddTime.ToString("MM-dd") %></span></a></li>
                            <%}
                                }%>
                        </ul>
                    </li>
            </div>
            <div class="yctj_r">
                <div class="yctj_notice">
                    <div class="yctj_r_title">最新公告</div>
                    <ul class="yctj_r_list">
                        <% if (forecastNew != null)
                            {
                                int count = forecastNew.Count;
                                if (forecastNew.Count > 4)
                                {
                                    count = 4;
                                }
                                for (int i = 0; i < count; i++)
                                {%>
                        <li><a href="news_details.aspx?id=<%=forecastNew[i].id%>&type=5"><span class="f18"><< <%=forecastNew[i].Title.Length>16 ?forecastNew[i].Title.Substring(0,16)+"...":forecastNew[i].Title %></span><span class="fr"><%=forecastNew[i].AddTime.ToString("MM-dd")%></span></a></li>
                        <%--                        <li><a href="ForecastPostInfo.aspx?id=<%=forecastNew[i].id %>"><span class="fl"><< <%=forecastNew[i].Title.Length > 16 ? forecastNew[i].Title.Substring(0, 16) : forecastNew[i].Title %> </span><span class="fr"><%=forecastNew[i].AddTime.ToString("MM-dd") %></span></a></li>--%>
                        <%}
                            } %>
                    </ul>
                </div>
                <div style="padding: 10px 0 0 0;">
                    <div class="yctj_r_title1"><span class="fl">中彩排行</span><span class="fr" style="font-size: 13px;">本站累计中奖 <span style="color: #d82715"><%=jiangjin2 %></span> 亿元</span></div>
                    <ul class="yctj_r_list1">
                        <%if (userAccount != null && userAccount.Count > 0)
                            {
                                for (int i = 0; i < (userAccount.Count > 12 ? 12 : userAccount.Count); i++)
                                {  %>
                        <li><span <%if (i < 3)
                                { %>class="dj_text3"
                            <%}
                                else
                                { %>
                            class="yctj_text3" <%} %>><%=i+1 %></span> <span><%=SelectName(userAccount[i].user_id)%> </span>
                            <span class="fr tr">
                           <%--     <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) % 100000000 / 10000,2)%> 万元 --%>
                                   <%if (Convert.ToDecimal(userAccount[i].winTotal) > 100000000)//亿
                            {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) / 100000000 ,2)%> 亿元
                                       <%}
                                           else
                                           {%>
                        <%if (Convert.ToDecimal(userAccount[i].winTotal) > 10000)
                            {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) /10000 ,2)%> 万元
                                               <%}
                                                   else
                                                   {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal),2)%> 元
                                               <%}
                                                   }
                                               %>
                            </span>

                        </li>
                        <% }
                            }%>
                    </ul>
                </div>
                <div style="padding: 10px 0 0 0;">
                    <div class="yctj_r_title1"><span class="fl">推荐方案</span><a href="#" class="fr" style="font-size: 12px; color: #6c6c6c;">更多>></a></div>
                    <ul class="yctj_r_list2">
                        <%if (tzlist != null && tzlist.Count > 0)
                            { %>
                        <%for (int k = 0; k < tzlist.Count; k++)
                            {%>
                        <li>· <a href="ForecastPostInfo.aspx?id=<%=tzlist[k].id %>"><%=tzlist[k].Title.Length > 16 ? tzlist[k].Title.Substring(0, 16)+"..." : tzlist[k].Title %></a></li>
                        <%--  <li><a href="news_details.aspx?id=<%=tzlist[k].id%>&type=7"><%=tzlist[k].Title%></a></li>--%>
                        <%}
                            }%>
                    </ul>
                </div>
                <div style="padding: 12px 0 0 0;">
                    <img src="images/yctj_ad.jpg" width="280" height="146">
                </div>
                <div style="padding: 12px 0 0 0;">
                    <img src="images/yctj_ad.jpg" width="280" height="146">
                </div>
            </div>
        </div>
    </div>
    <div>
</asp:Content>

